package com.haven.webrobotserver.service.impl;

import com.haven.webrobotserver.dao.mybatis.mapper.ResultTestcaseTestdataMapper;
import com.haven.webrobotserver.domain.ResultTestcaseTestdata;
import com.haven.webrobotserver.service.ResultTestcaseTestdataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ResultTestcaseTestdataServiceImpl implements ResultTestcaseTestdataService {

    @Autowired(required = false)
    private ResultTestcaseTestdataMapper resultTestcaseTestdataMapper;

    @Override
    public void saveOne(ResultTestcaseTestdata resultTestcaseTestdata) {
        resultTestcaseTestdataMapper.savaOne(resultTestcaseTestdata);
    }

    @Override
    public List<Map<String, String>> getListByBatchId(int batchId) {
        return resultTestcaseTestdataMapper.getListByBatchId(batchId);
    }


}
